package chu.dejian.models;

import java.util.List;

/**
 * Created by Administrator on 2015/12/18 0018.
 */
public class GetMeasurementResponse {

    /**
     * next :
     * prev :
     * total : 8
     * page : 1
     * results : [{"location":"23.1253503,67.0523434","time":"2016-12-12 12:12:12","timezone_offset":480,"result":{"pulsestate":"normal","pulse":72,"note":"null","systolic":128,"message":"Blood pressure is normal,Pulse is normal","diastolic":84},"note":"","device_model":1,"device_type":1,"device_sub_type":1}]
     */

    private String next;
    private String prev;
    private int total;
    private int page;
    /**
     * location : 23.1253503,67.0523434
     * time : 2016-12-12 12:12:12
     * timezone_offset : 480
     * result : {"pulsestate":"normal","pulse":72,"note":"null","systolic":128,"message":"Blood pressure is normal,Pulse is normal","diastolic":84}
     * note :
     * device_model : 1
     * device_type : 1
     * device_sub_type : 1
     */

    private List<ResultsEntity> results;

    public void setNext(String next) {
        this.next = next;
    }

    public void setPrev(String prev) {
        this.prev = prev;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public void setResults(List<ResultsEntity> results) {
        this.results = results;
    }

    public String getNext() {
        return next;
    }

    public String getPrev() {
        return prev;
    }

    public int getTotal() {
        return total;
    }

    public int getPage() {
        return page;
    }

    public List<ResultsEntity> getResults() {
        return results;
    }

    public static class ResultsEntity {
        private String location;
        private String time;
        private int timezone_offset;
        /**
         * pulsestate : normal
         * pulse : 72
         * note : null
         * systolic : 128
         * message : Blood pressure is normal,Pulse is normal
         * diastolic : 84
         */

        private ResultEntity result;
        private String note;
        private int device_model;
        private int device_type;
        private int device_sub_type;

        public void setLocation(String location) {
            this.location = location;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public void setTimezone_offset(int timezone_offset) {
            this.timezone_offset = timezone_offset;
        }

        public void setResult(ResultEntity result) {
            this.result = result;
        }

        public void setNote(String note) {
            this.note = note;
        }

        public void setDevice_model(int device_model) {
            this.device_model = device_model;
        }

        public void setDevice_type(int device_type) {
            this.device_type = device_type;
        }

        public void setDevice_sub_type(int device_sub_type) {
            this.device_sub_type = device_sub_type;
        }

        public String getLocation() {
            return location;
        }

        public String getTime() {
            return time;
        }

        public int getTimezone_offset() {
            return timezone_offset;
        }

        public ResultEntity getResult() {
            return result;
        }

        public String getNote() {
            return note;
        }

        public int getDevice_model() {
            return device_model;
        }

        public int getDevice_type() {
            return device_type;
        }

        public int getDevice_sub_type() {
            return device_sub_type;
        }

        public static class ResultEntity {
            private int pulsestate;
            private int pulse;
            private String note;
            private int systolic;
            private String message;
            private int diastolic;

            public void setPulsestate(int pulsestate) {
                this.pulsestate = pulsestate;
            }

            public void setPulse(int pulse) {
                this.pulse = pulse;
            }

            public void setNote(String note) {
                this.note = note;
            }

            public void setSystolic(int systolic) {
                this.systolic = systolic;
            }

            public void setMessage(String message) {
                this.message = message;
            }

            public void setDiastolic(int diastolic) {
                this.diastolic = diastolic;
            }

            public int getPulsestate() {
                return pulsestate;
            }

            public int getPulse() {
                return pulse;
            }

            public String getNote() {
                return note;
            }

            public int getSystolic() {
                return systolic;
            }

            public String getMessage() {
                return message;
            }

            public int getDiastolic() {
                return diastolic;
            }

            @Override
            public String toString() {
                return "ResultEntity{" +
                        "pulsestate='" + pulsestate + '\'' +
                        ", pulse=" + pulse +
                        ", note='" + note + '\'' +
                        ", systolic=" + systolic +
                        ", message='" + message + '\'' +
                        ", diastolic=" + diastolic +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "ResultsEntity{" +
                    "location='" + location + '\'' +
                    ", time='" + time + '\'' +
                    ", timezone_offset=" + timezone_offset +
                    ", result=" + result +
                    ", note='" + note + '\'' +
                    ", device_model=" + device_model +
                    ", device_type=" + device_type +
                    ", device_sub_type=" + device_sub_type +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "GetMeasurementResponse{" +
                "next='" + next + '\'' +
                ", prev='" + prev + '\'' +
                ", total=" + total +
                ", page=" + page +
                ", results=" + results +
                '}';
    }
}
